<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--所有的HTML元素都可以用thymeleaf来接管-->

   <h3 th:text="${msg}"></h3> <!-- //不转义-->
   <h3 th:utext="${msg}"></h3> <!--//转义-->
<!--遍历集合-->
 <h2 th:each="user:${users}" th:text="${user}"></h2>
</body>
</html>